ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Display numbers

by nia40m ST3

Sublime 3 plugin that shows a number in 10, 16, 2 and 8 numeral systems

Details

Installs

  • Total 339
  • Win 197
  • Mac 79
  • Linux 63
Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Plugin that shows a number in 10, 16, 2 and 8 numeral systems for Sublime 3

This plugin converts the selected number in decimal, hexadecimal, binary or octal numeral systems and displays a popup that shows the result in all four (dec, hex, bin and oct) numeral systems.

Popup modes

basic - has minimal information:

popup example

extended - can convert numbers and supports additions:

popup example

tabled - backwards compatibility with @kalund plugin:

popup example

Additional functionality

  • Pressing any digit of binary number makes it opposite of it's current value.
  • Key binding is available for convert numeral system and swap endianness functions.

Addition: swap endianness

Displays buttons to swap endianness interpreting number as halfword (16 bits), word (32 bits) or doubleword (64 bits).

Addition: interpret hex number as float

Displays selected number in hex format as IEEE 754: * float (32 bits) if it is less or equal to 4 bytes length; * double (64 bits) if it is less or equal to 8 bytes length.

Addition: interpret number as size in bytes

Addition: bit shifting

Display buttons to shift the number left or right by one bit.

Installation

Clone this repository or download zip archive into the Sublime 3 package directory (you can find it in menu option Preferences -> Browse Packages...). Keep in mind that plugin folder name should be Display numbers.

Settings

You can setup this plugin settings or key bindings which can be edited in menu option Preferences -> Package Settings -> Display nums -> Settings or Key bindings accordingly. Or you can define project specific settings by adding “disnum.” to the setting option, for example:

user settings file

{
    "plugin_mode": "extended"
}

project settings file

{
    "disnum.plugin_mode": "tabled"
}